home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / hdf / unix / hdf3_2r2.lha / HDF3.2r2 / src / dfgr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-28  |  3.2 KB  |  79 lines

  1. /***************************************************************************
  2. *
  3. *
  4. *                         NCSA HDF version 3.2r2
  5. *                            October 30, 1992
  6. *
  7. * NCSA HDF Version 3.2 source code and documentation are in the public
  8. * domain.  Specifically, we give to the public domain all rights for future
  9. * licensing of the source code, all resale rights, and all publishing rights.
  10. *
  11. * We ask, but do not require, that the following message be included in all
  12. * derived works:
  13. *
  14. * Portions developed at the National Center for Supercomputing Applications at
  15. * the University of Illinois at Urbana-Champaign, in collaboration with the
  16. * Information Technology Institute of Singapore.
  17. *
  18. * THE UNIVERSITY OF ILLINOIS GIVES NO WARRANTY, EXPRESSED OR IMPLIED, FOR THE
  19. * SOFTWARE AND/OR DOCUMENTATION PROVIDED, INCLUDING, WITHOUT LIMITATION,
  20. * WARRANTY OF MERCHANTABILITY AND WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE
  21. *
  22. ****************************************************************************
  23. */
  24.  
  25. /*
  26. $Header: /hdf/hdf/v3.2r2/src/RCS/dfgr.h,v 1.3 1992/10/23 00:14:11 koziol beta koziol $
  27.  
  28. $Log: dfgr.h,v $
  29.  * Revision 1.3  1992/10/23  00:14:11  koziol
  30.  * Changed all DFIstr*() and DFImem*() calls to HDstr*() and HDmem*() calls
  31.  * #ifdef'd out the macros Jason defined for Hopen, Hclose, etc. for Vsets
  32.  * Replaced Vset VFREESPACE and VGETSPACE calls with actual calls to HDfreespace
  33.  * and HDgetspace
  34.  * Added a MS-Windows lower lower for file I/O (which may not be completely working
  35.  *
  36.  * Revision 1.1  1992/08/25  21:40:44  koziol
  37.  * Initial revision
  38.  *
  39. */
  40. /*-----------------------------------------------------------------------------
  41.  * File:    dfgr.h
  42.  * Purpose: header file for the Raster Image set
  43.  * Invokes: df.h
  44.  * Contents:
  45.  *  Structure definitions: DFGRdr, DFGRrig
  46.  * Remarks: This is included with user programs which use general raster
  47.  *---------------------------------------------------------------------------*/
  48.  
  49.  
  50. #ifndef DFGR_H                      /* avoid re-inclusion */
  51. #define DFGR_H
  52.  
  53. #include "hdf.h"
  54.  
  55. /* description record: used to describe image data, palette data etc. */
  56. typedef struct {
  57.     int32 xdim, ydim;               /* dimensions of data */
  58.     DFdi nt;                        /* number type of data */
  59.     int16 ncomponents, interlace;   /* data ordering: chunky / planar etc */
  60.     DFdi compr;                     /* compression */
  61.         /* ### Note: compression is currently uniquely described with a tag.
  62.             No data is attached to this tag/ref.  But this capability is
  63.             provided for future expansion, when this tag/ref might point to
  64.             some data needed for decompression, such as the actual encodings */
  65. } DFGRdr;
  66.  
  67. /* structure to hold RIG info */
  68. typedef struct {
  69.     DFdi data[3];                   /* image/lut/mattechannel */
  70.     DFGRdr datadesc[3];             /* description of image/lut/mattechannel */
  71.     int32 xpos, ypos;               /* X-Y position of image on screen */
  72.     float32 aspectratio;            /* ratio of pixel height to width */
  73.     float32 ccngamma,               /* color correction parameters */
  74.         ccnred[3], ccngrren[3], ccnblue[3], ccnwhite[3];
  75.     char *cf;                       /* color format */
  76. } DFGRrig;
  77.  
  78. #endif /* DFGR_H */
  79.